package com.jueling.culture;


/**
 * @author mxk
 * @date 2020/3/8
 */
public class ModelAndMapperGenerator {

    public static void main(String[] args) {
        CodeGenerator.AUTHOR = "linp";
        String tableName = "ROLE_EDITOR";
        String modelName = "RoleEditor";
        String describe = "角色编辑权限";
        String projectPath = CodeGenerator.PROJECT_PATH;
        ProjectConstant.BASE_PACKAGE = "com.jueling.culture";
        ProjectConstant.init();
        CodeGenerator.init();
        CodeGenerator.genModelAndMapper(tableName, modelName,projectPath);
        CodeGenerator.genService(tableName, modelName, describe, projectPath, ProjectConstant.COMMON_PACKAGE);
        CodeGenerator.genController(tableName, modelName, describe,projectPath, ProjectConstant.COMMON_PACKAGE);
    }
}
